﻿#pragma once

#include <Windows.h>
#include <string>
#include <vector>


using namespace std;
bool IsTextUTF8CSharp(const std::string& inputStream);

//gbk ת utf8
std::string GBKToUTF8(const std::string& strGBK);

//utf-8 ת gbk
std::string UTF8ToGBK(const std::string& strUTF8);

string getFileName(string fileName);

string getFileNameNoExt(string fileName);

string getFileExt(string fileName);
bool delFileLine(string filename, string strLabel, bool isFilter=true);
double getRatio(int index,double dfirst = 0.6);

